# -*- coding: UTF-8 -*-

from Exp import E
from draw import *

x = E().sym('x');
#c = 2*x**2+3*x**4+E().float(4)**x;
e = E().sym('e');
w = E().sym('w');
b = E().sym('b');
#c = 1/(1+e**(-(w*x+b)));#自定义测试表达式
c = (w*x+b)**(w*x+b)+3*w;
c.printme();
c.printnodes();

d = c.diff(w);
d.printme();
d.printnodes();
e = d.optm().optm();
e.printme();
drawE(e);
